#include "windowsupdatewidget.h"
#include "ui_windowsupdatewidget.h"
#include <QMovie>

WindowsUpdateWidget::WindowsUpdateWidget(QWidget *parent) :
    QWidget(parent),
    ui(new Ui::WindowsUpdateWidget)
{
    ui->setupUi(this);
    this->setWindowFlags(Qt::WindowStaysOnTopHint);
    this->showFullScreen();
    QMovie *movie = new QMovie(":/new/prefix1/resource/update.gif");
    ui->label_gif->setMovie(movie);
    movie->start();
}

WindowsUpdateWidget::~WindowsUpdateWidget()
{
    delete ui;
}

#include <QMouseEvent>
void WindowsUpdateWidget::mousePressEvent(QMouseEvent *event)
{
    Q_UNUSED(event)
    this->destroy();
}

